package com.ojoin.ojoin.eb_spider.model;

public class MeinianUser {
    private Integer id;

    private String username;

    private String password;

    private String companyName;

    private Integer status;

    private Integer channel;

    /**
     * 用于表示是那个平台的账号，比如美年，慈铭等
     *
     */
    private int chnelType;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }


    @Override
    public boolean equals(Object obj) {
        if(null != obj && obj instanceof  MeinianUser ){
            MeinianUser mu = (MeinianUser)obj;
            if(mu.getId() == this.getId()){
                return true;
            }
        }
        return false;
    }

    @Override
    public int hashCode() {
        return this.getId().hashCode();
    }

    public Integer getChannel() {
        return channel;
    }

    public void setChannel(Integer channel) {
        this.channel = channel;
    }
}